package com.ryder.petmatediarybackend.module.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 描述: 登录响应 VO（包含 Token、用户信息、角色权限）
 *
 * @author Ryder
 * @version 1.0
 * @since 1.0
 * 更新日期: 2025/10/27
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "登录响应信息")
public class LoginVO {

    @Schema(description = "Token 信息")
    private TokenVO token;

    @Schema(description = "用户基础信息")
    private UserInfoVO userInfo;

    @Schema(description = "角色编码列表", example = "[\"admin\", \"user\"]")
    private List<String> roles;

    @Schema(description = "权限编码列表", example = "[\"user:view\", \"user:edit\"]")
    private List<String> permissions;
}
